package com.example.demo.tcp;

import com.example.demo.udp.UDPServer;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

@Service
public class TcpService {
    @PostConstruct
    public void initUDPServer() {
        try {
            TcpNettyServer.bind(10004);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
